Skip to content

[common]: allow configuring StatefulSet governing Service name - #186

Merged
wthhub merged 1 commit into
bedag:masterfrom
rekup:feat/headless-service-name
Aug 12, 2026
Merged

[common]: allow configuring StatefulSet governing Service name#186
wthhub merged 1 commit into
bedag:masterfrom
rekup:feat/headless-service-name

Conversation

@rekup

@rekup rekup commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

What this PR does:
Fixes the common chart's StatefulSet governing Service name mismatch: common.statefulset's spec.serviceName (<library.name>-<component>) never matched the Service name produced by common.service (<library.name>-<component>-<servicename>), so the governing/headless service link was broken for every StatefulSet defined via this chart.

Adds an optional controller.serviceName field. When set, spec.serviceName is rendered as <library.name>-<component>-<controller.serviceName>, matching a services.<name> entry under the same component. When unset, the previous naming is kept for backwards compatibility.

Which issue this PR fixes
fixes #185

Notes for Reviewer:

  • charts/common/templates/_statefulset.yaml: conditionally render serviceName using controller.serviceName when present.
  • charts/common/values.schema.json: added optional serviceName string under controller.
  • charts/common/values.yaml: documented the new field.
  • Chart version bumped 12.8.012.9.0 (additive/backwards-compatible change).

Checklist:

  • Pull Request title in format [chart]: Changed Something
  • Updated documentation in the README.md.gotmpl file and executed helm-docs
  • Chart Version bumped
  • All commits are signed-off

Signed-off-by: Reto Kupferschmid <kupferschmid@puzzle.ch>
@rekup
rekup requested review from a team as code owners August 12, 2026 07:07

@wthhub wthhub left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for contributing!

@wthhub wthhub changed the title feat(common): allow configuring StatefulSet governing Service name [common]: allow configuring StatefulSet governing Service name Aug 12, 2026
@wthhub
wthhub merged commit 5e02b92 into bedag:master Aug 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[common] StatefulSet serviceName does not match generated Service name

2 participants